<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <?php include "inc/head.php"; ?>
</head>

<body>
  <?php
  include "inc/header.php";
  include "inc/nav.php";
  include "inc/banner.php";
  ?>

  <?php include "inc/breadcrumb.php"; ?>

  <div class="container bg-white block-shadow">
    <div class="row my-2">
      <div class="col-sm-3 hidden-xs">
        <?php include "inc/side.php"; ?>
      </div>

      <div class="col-xs-12 col-sm-9">
        <dl class="title">
          <dt><?php echo $detail['d_name']; ?></dt>
        </dl>
        <div class="article pb-5">
          <?php echo $detail['d_content']; ?>
          <div class="text-right pt-3">
            <!-- 浏览量：<span class="label label-default"><?php echo $detail['d_hits']; ?></span><br> -->
            发布日期：<span class="label label-default"><?php echo local_date('Y-m-d', $detail['d_date']); ?></span><br>
            发布者：<span class="label label-default"><?php echo iif($detail['d_author'], '本站编辑'); ?></span>
          </div>
        </div>

        <div class="relation">
          <nav aria-label="...">
            <ul class="pager">
              <?php
              if (!empty($prev)) {
                echo '<li class=""><a href="' . d_url($prev['id'], $prev['d_link']) . '"><span aria-hidden="true">&lsaquo;</span> ' . $prev['d_name'] . '</a></li>';
              }
              if (!empty($next)) {
                echo ' <li class=""><a href="' . d_url($next['id'], $next['d_link']) . '">' . $next['d_name'] . ' <span aria-hidden="true">&rsaquo;</span></a></li>';
              }
              ?>
            </ul>
          </nav>
        </div>
      </div>

    </div>
  </div>

  <div class="clearfix"></div>

  <div class="py-3"></div>

  <?php
  include "inc/footer.php";
  include "inc/js.php";

  include "inc/code.php";
  ?>
</body>

</html>